package com.yalu.entity.data;

import java.io.Serializable;

import javax.persistence.Embeddable;

import org.apache.commons.lang.StringUtils;

@Embeddable
public class SalesKey implements Serializable{
	private static final long serialVersionUID = 3083994295555252401L;

	String sku;
	String product_id;


	@Override
	public boolean equals(Object obj) {
//		if (this == obj) {
//			return true;
//		}
		if (obj == null) {
			return false;
		}
		if (getClass().getPackage() != obj.getClass().getPackage()) {
			return false;
		}
		final SalesKey other = (SalesKey) obj;
		return StringUtils.equals(sku, other.getSku())&& StringUtils.equals(product_id, other.getProduct_id());
	}


	public String getSku() {
		return sku;
	}


	public void setSku(String sku) {
		this.sku = sku;
	}


	public String getProduct_id() {
		return product_id;
	}


	public void setProduct_id(String product_id) {
		this.product_id = product_id;
	}
	
	
}
